//part1:C07:7.9/Person.h
#ifndef PERSON_H__
#define PERSON_H__
#include <iostream>
#include <istream>
#include <ostream>
class Person
{
public:
    std::string getName() const 
    {
        return strName;
    }

    void setName(std::string name)
    {
        strName = name;
    }

    std::string getAddress() const 
    {
        return strAddress;
    }

    void setAddress(std::string Address)
    {
        strAddress = Address;
    }

    std::istream &read(std::istream &is, Person &per)
    {
        is >> per.strName >> per.strAddress;
        return is;
    }    

    std::ostream &print(std::ostream &os, const Person &per)
    {
        os << per.strName << " " << per.strAddress << std::endl;
        return os;
    }
private:
    std::string strName;
    std::string strAddress;
};
#endif
